/*
 * Created on 2005-3-23
 *
 */
package com.hd123.rumba.impex;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;

import com.hd123.rumba.impex.dobject.DObject;
import com.hd123.rumba.impex.dobject.DPacket;

/**
 * @author caili
 */
public interface IImpexActor {
  public static final String ROOTELEMENTNAME = "mediadata";
  
  public ImpexLog importFromStream(InputStream in, ImpexLog log) throws Exception;
  public ImpexLog importFromDObjects(DObject[] dos, ImpexLog log) throws Exception;

  public ImpexLog exportToStream(OutputStream out, ImpexLog log) throws Exception;
  public DPacket exportToDPacket(List list, ImpexLog log) throws Exception;
}
